import request from '@/utils/request'

// 查询发布列表
export function listPublish(query) {
  return request({
    url: '/admin/publish/list',
    method: 'get',
    params: query
  })
}

// 查询发布详细
export function getPublish(publishId) {
  return request({
    url: '/admin/publish/get/' + publishId,
    method: 'get'
  })
}

// 审核发布申请
export function reviewPublish(data) {
  return request({
    url: '/admin/publish/review',
    method: 'post',
    data: data
  })
}

